package com.bt.table.ppt;

/**
 * Ams_ret_tool_rpt_almId entity. @author MyEclipse Persistence Tools
 */

public class Ams_ret_tool_rpt_almId implements java.io.Serializable {

	// Fields

	private String tool_id_fk;
	private String alm_id;

	// Constructors

	/** default constructor */
	public Ams_ret_tool_rpt_almId() {
	}

	/** full constructor */
	public Ams_ret_tool_rpt_almId(String tool_id_fk, String alm_id) {
		this.tool_id_fk = tool_id_fk;
		this.alm_id = alm_id;
	}

	// Property accessors

	public String getTool_id_fk() {
		return this.tool_id_fk;
	}

	public void setTool_id_fk(String tool_id_fk) {
		this.tool_id_fk = tool_id_fk;
	}

	public String getAlm_id() {
		return this.alm_id;
	}

	public void setAlm_id(String alm_id) {
		this.alm_id = alm_id;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Ams_ret_tool_rpt_almId))
			return false;
		Ams_ret_tool_rpt_almId castOther = (Ams_ret_tool_rpt_almId) other;

		return ((this.getTool_id_fk() == castOther.getTool_id_fk()) || (this
				.getTool_id_fk() != null && castOther.getTool_id_fk() != null && this
				.getTool_id_fk().equals(castOther.getTool_id_fk())))
				&& ((this.getAlm_id() == castOther.getAlm_id()) || (this
						.getAlm_id() != null && castOther.getAlm_id() != null && this
						.getAlm_id().equals(castOther.getAlm_id())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getTool_id_fk() == null ? 0 : this.getTool_id_fk()
						.hashCode());
		result = 37 * result
				+ (getAlm_id() == null ? 0 : this.getAlm_id().hashCode());
		return result;
	}

}